/**
 * 
 * 
 * 
 * @return Object literal singleton instance of DirectoryListing
 * 
 */

var CirphoCamera = function() {
};

/**
 * @param directory
 *            The directory for which we want the listing
 * @param successCallback
 *            The callback which will be called when directory listing is
 *            successful
 * @param failureCallback
 *            The callback which will be called when directory listing encouters
 *            an error
 */
CirphoCamera.prototype.camera = function(directory, successCallback,
		failureCallback) {

	return PhoneGap.exec(successCallback, // Success callback from the plugin

	failureCallback, // Error callback from the plugin

	'CirphoCameraPlugin', // Tell PhoneGap to run "DirectoryListingPlugin"
							// Plugin

	'camera', // Tell plugin, which action we want to perform

	[ directory ]); // Passing list of args to the plugin

};

PhoneGap.addConstructor(function() {

	PhoneGap.addPlugin("cirphoCamera", new CirphoCamera());

});